/* 全局样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --border-color: #ddd;
    --bg-color: #f5f5f5;
    --hover-bg: #e8f4f8;
    --selected-bg: #d4ebf2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: var(--dark-color);
    font-size: 24px;
}

/* 主布局 */
main {
    display: flex;
    gap: 20px;
}

.left-panel {
    width: 150px;
    flex-shrink: 0;
}

.right-panel {
    flex-grow: 1;
}

/* 面板样式 */
.panel {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 10px;
    position: relative;
}

.panel h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-color);
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

/* 按钮样式 */
.btn {
    display: block;
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 8px;
    border: none;
    border-radius: 3px;
    background-color: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: all 0.2s;
}

.btn:hover {
    background-color: var(--hover-bg);
}

.btn i {
    margin-right: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e2e6ea;
}

/* 任务表格 */
.section-title {
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0 10px;
    color: var(--dark-color);
}

.task-table-container {
    background-color: white;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
}

.task-table th {
    background-color: #f5f5f5;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
}

.task-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.task-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.task-table tr:hover {
    background-color: var(--hover-bg);
}

.task-table tr.selected {
    background-color: var(--selected-bg);
}

.task-table th:nth-child(1), 
.task-table td:nth-child(1) {
    width: 50%;
    text-align: left;
}

.task-table th:nth-child(2), 
.task-table td:nth-child(2) {
    width: 20%;
    text-align: center;
}

.task-table th:nth-child(3), 
.task-table td:nth-child(3) {
    width: 30%;
    text-align: left;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 500px;
    max-width: 90%;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--danger-color);
}

.modal h2 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

/* 数据位置信息样式 */
.data-location-info {
    margin-top: 20px;
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.data-location-box {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    margin-top: 5px;
}

.data-location-text {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.data-location-actions {
    display: flex;
    gap: 10px;
}

.btn-info {
    background-color: var(--primary-color);
    color: white;
}

.btn-info:hover {
    background-color: var(--secondary-color);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 上下文菜单 */
.context-menu {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    z-index: 1000;
    width: 180px;
}

.context-menu ul {
    list-style-type: none;
}

.context-menu li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

.context-menu li:hover {
    background-color: var(--hover-bg);
}

.context-menu li i {
    margin-right: 5px;
}

.context-menu .divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .panel {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 200px;
    }
} 